package com.ds.service.org;

import java.util.List;

import com.ds.common.expression.ParseException;
import com.ds.common.expression.function.AbstractFunction;
import com.ds.org.Org;
import com.ds.server.JDSClientService;
import com.ds.server.OrgManagerFactory;

public class GetAllOrgs extends AbstractFunction {

    public List<Org> perform(JDSClientService client) throws ParseException {

	List<Org> objs = OrgManagerFactory.getOrgManager(client.getConfigCode()).getOrgs();

	return objs;
    }
}